package routers

import (
	"github.com/gin-gonic/gin"
	"week2d/controllers"
)

func Router(r *gin.Engine) {

	ws := r.Group("/ws")
	{
		ws.GET("/chat", controllers.ClientSocket)
	}
	goods := r.Group("/goods")
	{
		goods.POST("file", controllers.UploadFile)
		goods.GET("/detail", controllers.GoodsDetail)
		goods.POST("/create", controllers.GoodsCreate)
		goods.POST("/delete", controllers.GoodsDelete)
	}
}
